package org.ascollada.core
{
	import org.ascollada.ASCollada;
	import org.ascollada.core.log.DaeLogger;
	
	public class DaeParam extends DaeElement
	{
		/** */
		public var type		:String;
		
		/**
		 * 
		 */ 
		public function DaeParam(document:DaeDocument, node:XML=null)
		{
			super(document, node);
		}
		
		/**
		 * Reads the node.
		 * 
		 * @param	node
		 */ 
		public override function read(node:XML):void
		{
			if(node.name().localName != ASCollada.DAE_PARAMETER)
			{
				DaeLogger.error("Not a " + ASCollada.DAE_PARAMETER + " element!");
				throw new Error("Not a " + ASCollada.DAE_PARAMETER + " element!");
			}
			
			super.read( node );
			
			this.type = node.@type.toString();
		}
	}
}